home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-02 | 1.8 KB | 59 lines | [TEXT/KAHL] |
- /******************************************************************************
- CEBCollaborator.c
-
- Class that represents objects that need access to the global
- event record. An EBCollaborator maintains a list of provider
- objects and a list of dependent objects. When an EBCollaborator
- changes, it sends itself the BroadcastChange message. Each
- dependent then receives the ProviderChanged message which packages
- an EventRecord along with it.
-
- If any object handles the event, change the event.what to a nullEvent
- so it is effectively ignored by the application.
-
- SUPERCLASS = CCollaborator
-
- Copyright © 1992 Joe Zobkiw. All rights reserved.
- Portions Copyright © 1990 Symantec Corporation. All rights reserved.
-
- Copyright © 1995 Gregory Bonk. All rights reserved.
- Changes upgrade to TPM 7.0.7
- ******************************************************************************/
-
- #include "CEBCollaborator.h"
-
- TCL_DEFINE_CLASS_M1(CEBCollaborator, CCollaborator);
-
- /**** C O N S T R U C T I O N / D E S T R U C T I O N M E T H O D S ****/
-
- CEBCollaborator::CEBCollaborator(void) : CCollaborator()
- {
- TCL_END_CONSTRUCTOR
- }
-
- CEBCollaborator::~CEBCollaborator(void)
- {
- TCL_START_DESTRUCTOR
- }
-
-
- /******************************************************************************
- IEBCollaborator
-
- Initialize an EBCollaborator
- ******************************************************************************/
- void CEBCollaborator::IEBCollaborator(void)
- {
- inherited::ICollaborator();
- }
-
- /******************************************************************************
- BroadcastEvent {Unique to this class}
-
- Broadcast an event
- ******************************************************************************/
- void CEBCollaborator::BroadcastEvent(EventRecord *macEvent)
- {
- BroadcastChange(kEventRecordReason, (Ptr)macEvent);
- }
-